package com.easy.dao;

import com.easy.bean.Cart;
import com.easy.bean.Collect;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectDao {

    int add(@Param("collect") Collect collect);

    int edit(@Param("collect") Collect collect);

    int delete(@Param("id") int collectid);

    List<Collect> getList(@Param("page") Page page, @Param("text") String text);

    Cart getCollectById(int collectid);

    int getCount(String text);
}
